﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OgonPhonesXML.Aastra.Serializer
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    public partial class AastraIPPhoneFormattedTextScreenScroll
    {
        private lineTagType[] lineField;
        private List<lineTagType> listLineType = new List<lineTagType>();

        private string heightField;

        public AastraIPPhoneFormattedTextScreenScroll()
        {
            this.heightField = "1";
        }
        public void addLine(string text, string size, string align)
        {
            lineTagType psvLineTag = new lineTagType();
            String[] finalText = { text };
            psvLineTag.Text = finalText;
            psvLineTag.Size = size;
            psvLineTag.Align = align;
            listLineType.Add(psvLineTag);
        }

        /// <comentarios/>
        [System.Xml.Serialization.XmlElementAttribute("Line", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public lineTagType[] Line
        {
            get
            {
                this.lineField = listLineType.ToArray();
                return this.lineField;
            }
            set
            {
                this.lineField = value;
            }
        }

        /// <comentarios/>
        [System.Xml.Serialization.XmlAttributeAttribute(DataType = "integer")]
        [System.ComponentModel.DefaultValueAttribute("1")]
        public string Height
        {
            get
            {
                return this.heightField;
            }
            set
            {
                this.heightField = value;
            }
        }
    }
}
